<script setup lang="ts">
import {onMounted,ref} from "vue"
import axios from "axios"
let data = ref([])
onMounted(()=>{
    axios.get("http://59.110.165.22:3000/api/users").then(res=>{
        data.value = res.data
    })
})
</script>

<template>
<ul>
  <li v-for="(user) in data" :key="user.id">
    {{ user.name }}
  </li>
</ul>
</template>

<style scoped>

</style>
